const baseSize=40;
function setRem(){
    const scale = document.documentElement.clientWidth/1920
    document.documentElement.style.fontSize=(baseSize*Math.min(scale,2))+'px'
}
setRem()
window.onresize=function () {
    setRem()
};
window.formatterValue = function(val) {
    return `${new Date(parseInt(val) * 1000).getFullYear()}.${new Date(parseInt(val) * 1000).getMonth() + 1}.${new Date(parseInt(val) * 1000).getDate()}`
}
